Skip to content

feat(v1.10.0): "Name to fit in" naming convention (detect-and-conform)#6

Merged
Filip-Podstavec merged 1 commit into
mainfrom
feat/naming-convention
Jun 1, 2026
Merged

feat(v1.10.0): "Name to fit in" naming convention (detect-and-conform)#6
Filip-Podstavec merged 1 commit into
mainfrom
feat/naming-convention

Conversation

@Filip-Podstavec

Copy link
Copy Markdown
Owner

Summary

Adds an explicit naming convention to the stack — the gap Filip flagged: the repo guided code shape (Write less, fit in) but said almost nothing about how identifiers should be named, beyond one implicit clause. Naming is one of the highest-signal long-term-maintainability factors, and AI agents have two repeatable failure modes here.

What it closes

  • Casing drift — a model carries a language-default prior (Python → snake_case, JS → camelCase) and silently imposes it on a client repo that deviates, so new code reads as "the AI-written part."
  • Wrong granularity — names land at the wrong altitude: too vague (get(), data()) or implementation-leaking and verbose (getting_data_from_mobile()).

Design: detect-and-conform, not a house style

Casing/separator is treated as repo-specific — the agent must detect the existing convention (per kind, per local module) and conform, never impose its default. Granularity/clarity is a universal quality principle. A prescribed house style was explicitly rejected: it would contradict the "fit in" north star and be wrong in most client repos. Full rationale + rejected alternative in ADR 0010.

Touchpoints

File Change
AGENTS.md tight Name to fit in bullet in "Write less, fit in" (kept under the 8 KiB lean budget)
templates/AGENTS.md.example same bullet, self-contained (the shipped client-repo artifact)
docs/conventions.md new ## Naming section — detection mechanics + granularity guidance
docs/adr/0010-*.md + index the decision record
CHANGELOG.md [1.10.0] Added entry
plugin.json / marketplace.json version bump 1.9.0 → 1.10.0

Checks

  • ✅ Version sync 1.10.0
  • ✅ AGENTS.md 7.97 KiB (under the 8 KiB target — tight, as ADR 0009 predicted at saturation)
  • ✅ Context-map rebuilt
  • pytest tests/ — 132 passed, 0 failed

Adds an explicit naming convention closing two recurring AI failure modes:
- casing drift (model imposes its language-default snake_case/camelCase
  instead of detecting and conforming to the repo's actual style, per kind
  and per local module)
- wrong granularity (names too vague like get() or too verbose/leaking like
  getting_data_from_mobile())

Deliberately detect-and-conform, NOT a prescribed house style — a house
style would contradict the stack's "fit in" north star and be wrong in most
client repos. Rationale in new ADR 0010.

Touchpoints:
- AGENTS.md "Write less, fit in" — tight "Name to fit in" bullet (kept under
  the 8 KiB lean budget per ADR 0009)
- templates/AGENTS.md.example — same bullet, self-contained (shipped artifact)
- docs/conventions.md — new "## Naming" section with detection mechanics +
  granularity guidance
- docs/adr/0010-*.md + index entry
- CHANGELOG [1.10.0]; version bump 1.9.0 -> 1.10.0 (plugin.json +
  marketplace.json). Context-map rebuilt. 132 tests pass.
@Filip-Podstavec Filip-Podstavec merged commit 79867c5 into main Jun 1, 2026
4 checks passed
@Filip-Podstavec Filip-Podstavec deleted the feat/naming-convention branch June 1, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant